package com.qf.j2105.controller;




import com.qf.j2105.po.CarCollect;
import com.qf.j2105.service.GzesbdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GzesbdController {
    @Autowired
    GzesbdService gzesbdService;
    //全部
    @RequestMapping("/gzbdall")
    public List<CarCollect> gzbdselectall(){
        List<CarCollect> carCollects = gzesbdService.findallGzesbd();
        return carCollects;
    }
    //SUV
    @RequestMapping("/gzbdsuv")
    public List<CarCollect> gzbdselectsuv(){
        List<CarCollect> carCollects1 = gzesbdService.findallSUV();
        return carCollects1;
    }
    //MVP
    @RequestMapping("/gzbdmvp")
    public List<CarCollect> gzbdselectmvp(){
        List<CarCollect> carCollects2 = gzesbdService.findallMVP();
        return carCollects2;
    }
    //网约车
    @RequestMapping("/gzbdwyc")
    public List<CarCollect> gzbdselectwyc(){
        List<CarCollect> carCollects3 = gzesbdService.findallWYC();
        return carCollects3;
    }
}
